<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <title>系统登陆</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/css/style.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap.css}"/>
</head>

<style type="text/css">
    .form_table {
        font-size: 15px;
    }
</style>

<body>
<div id="wrap">
    <div id="top_content">
        <div id="header">
            <div id="rightheader">
                <p>
                    [[${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}]]
                    <br/>
                </p>
            </div>
            <div id="topheader">
                <h1 id="title">
                    <a href="#">影像制品租凭管理系统</a>
                </h1>
            </div>
            <div id="navigation">

            </div>
        </div>
        <div id="content">
<!--            <p id="whereami"></p>-->
            <h2>
                登陆
            </h2>
            <form th:action="@{/user/login}" method="post">
                <table cellpadding="0" cellspacing="0" border="0" class="form_table">
                    <tr>
                        <td valign="middle" align="right">
                            用户名:
                        </td>
                        <td valign="middle" align="left">
                            <input type="text" class="inputgri" name="username"/>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">
                            密码:
                        </td>
                        <td valign="middle" align="left">
                            <input type="password" class="inputgri" name="password"/>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">
                            登陆模式:
                        </td>
                        <td valign="middle" align="left">
                            <label for="admin">管理员</label>
                            <input id="admin" type="radio" name="loginType" value="admin">
                            <label for="user">激活用户</label>
                            <input id="user" type="radio" name="loginType" value="user" checked>
                            <label for="visitor">未激活用户</label>
                            <input id="visitor" type="radio" name="loginType" value="visitor" checked>
                        </td>
                    </tr>
                </table>
                <p>
                    <input type="submit" class="btn-primary" value="登录 &raquo;"/>
                    <input type="button" class="btn-success" onclick="location.href='/ims/toRegister'" value="注册 &raquo;"/>
                    <input type="button" class="btn-danger" onclick="location.href='/ims/visitorLogin'" value="游客访问 &raquo;"/>
                </p>
            </form>
        </div>
    </div>
    
    <div id="footer">
        <div id="footer_bg">
            copyright@2021
        </div>
    </div>

</div>
</body>
</html>
